﻿CollectSourceFiles(${CMAKE_CURRENT_SOURCE_DIR} PRIVATE_SOURCES)
GroupSources(${CMAKE_CURRENT_SOURCE_DIR})

add_library (cpr STATIC ${PRIVATE_SOURCES})

target_include_directories(cpr
    PUBLIC 
		${CMAKE_CURRENT_SOURCE_DIR}/include)

target_link_libraries(cpr PRIVATE emoney-core-interface PUBLIC libcurl )
target_link_libraries(cpr PUBLIC ${CMAKE_THREAD_LIBS_INIT})
set_target_properties(cpr PROPERTIES FOLDER "dep")
set_property(TARGET cpr PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")